package com.jike.mahjong.service;

import com.jike.mahjong.common.Page;
import com.jike.mahjong.model.Club;
import com.jike.mahjong.model.CoinRecordModel;
import com.jike.mahjong.model.Manager;
import com.jike.mahjong.model.TradeRecord;

import java.util.List;
import java.util.Map;

/**
 * Created by star on 2016/8/23.
 */
public interface PersonService {


    public List<Manager> getAllManager();

    public List<Manager> getManagerByConditon(Map<String, Object> paraMap);

    public List<Manager> getManagerByRole(Map<String, Object> paraMap);

    public Integer changePwd(Map<String,Object> para);

    public Integer addManager(Manager model);

    /**
     * 代理代售钻石
     * @param map
     * @return
     * @throws Exception
     */
    public Map<String,Object> insertAgentSellCoin(CoinRecordModel coinRecordModel) throws Exception;

    /**
     * 代理查询出售历史记录
     * @param map
     * @return
     */
    public List<CoinRecordModel> querySellHistory(Map<String,Object> map);

    /**
     * 查询当前代理用户的信息
     * @param map
     * @return
     */
    public Manager queryManagerInfo(Map<String,Object> map);
    /**
     * 后台管理查询代理list
     * @param para
     * @param page
     * @return
     */
    public Page queryAgentList(Map<String,Object> para,Page page);

    /**
     * 管理员帮代理充值插入
     * @return
     */
    public Integer addAgentCoin(TradeRecord tradeRecord);
    /**
     * 代理修改密码
     * @param para
     * @return
     */
    public Integer agentChangePwd(Map<String,Object> para);
    /**
     * 删除用户
     * @param para
     * @return
     */
    public Integer deleteManager(Map<String,Object> para);
}
